SASH A2 - Marlin firmware, ready configured
============================================

This is Marginally Clever's Marlin-polargraph fork (branch 2.1.x-polargraph)
with Configuration.h and Configuration_adv.h already set for your machine:

  Board ............ Arduino Mega 2560 + RAMPS 1.4   (BOARD_RAMPS_14_EFB)
  Display .......... RepRapDiscount Full Graphic Smart Controller (12864)
  Drivers .......... A4988, 1/16 microstepping, 80 steps/mm
  Extruders ........ 0  (and no thermistor, so no "MINTEMP" halt)
  Endstops ......... X-MAX and Y-MAX, switches wired S and GND only
  Servo ............ 1, on D11, kept powered (spring would push it back)
  Motors ........... never switched off by idle timeout (weights would drift)
  Geometry ......... X_BED_SIZE 566, Y_BED_SIZE 834, MANUAL_Y_HOME_POS -385.6
  Max belt ......... POLARGRAPH_MAX_BELT_LEN 851
  Screen menu ...... "Pen & machine": Pen up, Pen down, Pen up and home, Motors off
  Board ............ 650 x 920 drawing board, pulley centres 580 apart, 40 below the top;
                     home point 840 below the board top edge

It has been compiled successfully for the Mega 2560 (43% flash, 55% RAM).

HOW TO FLASH  (the build guide walks you through this with pictures)
  1. Install Visual Studio Code, then the "PlatformIO IDE" extension.
  2. File > Open Folder... > choose THIS folder (the one with platformio.ini).
  3. Plug the Mega into the laptop by USB (RAMPS can be on or off it).
  4. Click the PlatformIO ant-head icon > mega2560 > Upload.
     First time it downloads the compiler - allow 5-10 minutes.

HOME AND SCALE (as built 14 Oct: neither number changed; home was set by moving the switches)
  Marlin/Configuration.h, search for:
    #define X_BED_SIZE 566            (line ~1698)
    #define MANUAL_Y_HOME_POS -385.6  (line ~2074)
  Change, save, Upload again.

THE PEN ANGLES FOR THE SCREEN MENU
  Marlin/Configuration_adv.h, search for SASH_PEN_UP and SASH_PEN_DOWN (set to 80 and 110, as built).
  Put in the angles you find in Commissioning, Upload again.
  Nothing else needs touching.

Sash-A2-prebuilt.hex predates the 10 Oct endstop fix (X/Y_MAX_ENDSTOP_INVERTING true).
Use PlatformIO Upload, not the hex. (Old line follows.)
Sash-A2-prebuilt.hex is the same firmware already compiled, in case you
prefer a hex flasher. You don't need it if you use PlatformIO.

AS BUILT, 14 October 2026: home with G28 X Y. QUICK_HOME off, HOMING_BUMP_MM 20, Z homing made harmless
(Z_MIN_ENDSTOP_INVERTING true, Z_MAX_POS 10). See the top-level README for the full list.
